<template>
 <div>
     <h1>主页面</h1>
     <From>
         <h3 slot="slotB">这是登录</h3>
         <div class="box" slot="slotA"></div>
         <button slot="slotA">登录</button>
     </From>
 </div>
</template>

<script>
import From from './From.vue'
export default {
    data(){
         return{}
    },
    created(){},
    methods:{},
    components:{
        From
    }
}

</script>
<style scoped>
.box {
    width: 100px;
    height: 100px;
    background-color: red;
}
</style>